﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _003_属性
{
    internal class Customer
    {
        private string name;
        private int address;
        private int age;
        public void SetAge(int age)
        {
            this.age = age;
        }
        public int GetAge()
        {
            return age;
        }
        public string Name //name大写
        {
            /*private*/ get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }
        //自动创建private int Gender成员
        public int Gender { get; set; }
    }
}
